package reflect;

import reflect.annotations.AutoRunClass;
import reflect.annotations.AutoRunMethod;

@AutoRunClass
public class Teacher {
    public String name = "张三";

    @AutoRunMethod
    public void teach(){
        System.out.println("老师"+name+":正在讲课...");
    }

    public void sing(){
        System.out.println("老师"+name+":正在唱歌...");
    }


    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                '}';
    }
}
